<?php


class GofishLoginUserDetailsForm extends sfForm
{
  public function configure()
  {
      $form = new sfGuardRegisterForm();
      
      $userDetails = new GofishPlayer();
      $userDetails->sfGuardUser = $form->getObject();  // Users AKA sfGuardUser
      
      $formDetails = new GofishPlayerForm($userDetails);
      //$formDetails = new GofishPlayerForm();
      
      //$form->setWidget('username', new sfWidgetFormInputText());
      $form->validatorSchema['email_address'] = new sfValidatorAnd(array(
          $form->validatorSchema['email_address'],
          new sfValidatorEmail()
          ));
          
      $this->embedForm('',$form);
      $this->embedForm('',$formDetails);
      
      $this->widgetSchema->setNameFormat("register_form[%s]");
  }
}

?>